package com.onepower.core.modules.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.onepower.core.modules.repository.entity.MatchScheduleLogicSocre;
import com.onepower.core.modules.repository.mapper.MatchScheduleLogicScoreMapper;
import com.onepower.core.modules.service.IMatchScheduleLogicScoreService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class IMatchScheduleLogicScoreServiceImpl extends ServiceImpl<MatchScheduleLogicScoreMapper, MatchScheduleLogicSocre> implements IMatchScheduleLogicScoreService {

    @Override
    public List<MatchScheduleLogicSocre> scheduleLogicScoreList(int matchScheduleId) {
        return baseMapper.scheduleLogicScore(matchScheduleId);
    }

    @Override
    public MatchScheduleLogicSocre scheduleLogicScore(int matchScheduleId, int type) {
        return baseMapper.scheduleLogicScoreForType(matchScheduleId,type);
    }

    @Override
    public void deleteByIdAndType(int matchScheduleId, int type) {
        baseMapper.deleteByIdAndType(matchScheduleId,type);
    }

    @Override
    public void updateScheduleLogicScore(int matchScheduleId, int type) {
        baseMapper.updateScheduleLogicScore(matchScheduleId,type);
    }

    @Override
    public List<Map<String,Object>> orderTotalScore(String scheduleName, int matchId) {
        return baseMapper.orderTotalScore(scheduleName,matchId);
    }
}
